{% extends 'basepl.html' %}
{% load static %}

{% block head %}
    <title>大学教学过程管理系统</title>
    <style>
    .taolun{
        background-color: ghostwhite;
        border: rgba(56, 25, 169, 0.07) solid ;
        width: 600px;
        height: 590px;
        left: 530px;
        position: absolute;
    }
    .page{
        width: 500px;
        height: 30px;
        bottom: 0;

        position: absolute;
    }
    .page>a{


        padding-left: 10px;
        margin-left: 10px;
    }
    </style>
{% endblock head %}
{% block nav %}
    <li><a href="/teaIndex">首页</a></li>
    <li><a href="#top">大学课程教学过程管理系统</a></li>
    <li><a href="/">切换账号</a></li>
    <li><a href="#"></a></li>
    <li><a href="#">关于</a></li>
   <li><a href="/">注销</a></li>
{% endblock %}
{% block li %}
    <li><a href="/teaIndex/teapick">选&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;课</a></li>
    <li><a href="/teaIndex/test">考&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;试</a></li>
    <li><a href="/teaIndex/tcallendar">日&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;历</a></li>
{% endblock li %}
{% block section %}
<div id="ly">
<h3 align="center">课程</h3>
    <hr>
    <table id="cname" cellpadding="10" cellspacing="5">
        <tr>
            {% for i in course %}

            <td><a href="/teaIndex/teaTask?cname={{ i.cname }}">{{ i.cname }}</a></td>
            {% endfor %}
        </tr>
    </table>
</div>
<div class="taolun" >
<h3 align="center">评论互动</h3>
    <hr>
<div id="comment">

</div>

    <div id="lyshow">
         <table cellpadding="8px" cellspacing="10px" rules="left">
            <tr>
                <td width="250">话  题</td>
                <td width="80">发布者</td>
                <td width="170">发布时间</td>
            </tr>
            {% for foo in p %}
                <tr>
                    <td width="250"><a class="tp" href="/teaIndex/ly?tid={{ foo.id }}"
                    >{{ foo.title }}</a></td>
                    <td width="80">{{ foo.snum }}</td>
                    <td width="170">{{ foo.lytime }}</td>
                </tr>
            {% endfor %}
        </table>
    </div>

     <div class="page">
    {% if p.has_previous %}
        <a href="/teaIndex/{{ p.previous_page_number}}">上一页</a>
    {% endif %}
        {% for foo in pg.page_range %}
            {% if foo == p.number %}
                <a href="#">{{ foo }}</a>
                {% else %}
                <a href="/teaIndex/{{ foo }}"
                >{{ foo }}</a>
            {% endif %}
        {% endfor %}
    {% if p.has_next %}
        <a href="/teaIndex/{{ p.next_page_number }}">下一页</a>
    {% endif %}
    </div>
</div>
{% endblock section %}



{% block qd %}

{% endblock qd %}